<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf Mall.
 *
 * @link     https://gitee.com/scwlkj/hypref_mall
 * contact  hyperf_mall@163.com
 */
namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * @Constants
 */
class PointCode extends AbstractConstants
{
    /**
     * @Message("收入积分")
     */
    public const INCOME_POINT = 1;

    /**
     * @Message("支出积分")
     */
    public const PAY_POINT = 2;

    /**
     * @Message("记录积分")
     */
    public const RECORD_POINT = 2;

    /**
     * @Message("签到送积分")
     */
    public const TYPE_SIGN = 1;

    /**
     * @Message("下单送积分")
     */
    public const TYPE_ORDER_PAY = 2;

    /**
     * @Message("积分购物")
     */
    public const TYPE_ORDER_BUY = 3;

    /**
     * @Message("待结算")
     */
    public const STATUS_WAIT = 0;

    /**
     * @Message("已结算")
     */
    public const STATUS_YES = 1;

    /**
     * @Message("已作废")
     */
    public const STATUS_CANCEL = 2;

    public static array $type_msg = [
        self::TYPE_SIGN => '签到送积分',
        self::TYPE_ORDER_PAY => '下单送积分',
        self::TYPE_ORDER_BUY => '积分购物',
    ];
}
